action muxer: Propagate registrations further up
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jun 2021 12:37:42 +0000 (08:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 17 Jun 2021 12:50:26 +0000 (08:50 -0400)
commitd5054f9b9946096031f09f788e13cc35fe18bcda
tree36ed3c383e9ea81a94a15d64c0aee1afd3efeafe
parentdb93090ea87ef549df72e98a87994918713f1227
action muxer: Propagate registrations further up

We were pretty aggressive about not registering
observers further than necessary, stopping at the
first muxer that provides an action.

But even though action changes further up in the tree
won't be relevant in that case, we need to listen to
accel changes, since they may come from higher up
in the tree (e.g. when using
gtk_application_set_accels_for_action with an action
that is defined on a widget.

So, register all the way to the top, and stop propagating
action changes when we hit a muxer that provides the action.
gtk/gtkactionmuxer.c